# 执行命令
# docker build -t jdk-8-vscode .

FROM mcr.microsoft.com/vscode/devcontainers/java:0-8-buster

# [Option] Install Maven
RUN sed -i 's#http://deb.debian.org#https://mirrors.163.com#g' /etc/apt/sources.list \
    && sed -i "s#http://security.debian.org#https://mirrors.163.com#g" /etc/apt/sources.list \
    && apt-get update && apt-get clean \
    && su vscode -c "umask 0002 && . /usr/local/sdkman/bin/sdkman-init.sh && sdk install maven"